package com.guangzi.mapper;

import com.guangzi.entity.Permission;
import com.guangzi.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RolePermissionDao extends BaseDao {

    List<Role> listRole();
    List<Permission> listPermission();
    List<Permission> listRolePermission();


    void saveRolePermission(@Param("roleId") Long roleId, @Param("permissionIdList") List<Long> permissionIdList);
    void deleteRolePermission(@Param("roleId") Long roleId);
    List<Permission> initSelectedP(@Param("roleId") Long roleId);

}
